Optimal. Leaf size=37 \[ \frac{\cot ^3(c+d x)}{3 a d}-\frac{\csc ^3(c+d x)}{3 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.1261, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.238, Rules used = {3872, 2839, 2606, 30, 2607} \[ \frac{\cot ^3(c+d x)}{3 a d}-\frac{\csc ^3(c+d x)}{3 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3872
Rule 2839
Rule 2606
Rule 30
Rule 2607
Rubi steps
\begin{align*} \int \frac{\csc ^2(c+d x)}{a+a \sec (c+d x)} \, dx &=-\int \frac{\cot (c+d x) \csc (c+d x)}{-a-a \cos (c+d x)} \, dx\\ &=-\frac{\int \cot ^2(c+d x) \csc ^2(c+d x) \, dx}{a}+\frac{\int \cot (c+d x) \csc ^3(c+d x) \, dx}{a}\\ &=-\frac{\operatorname{Subst}\left (\int x^2 \, dx,x,-\cot (c+d x)\right )}{a d}-\frac{\operatorname{Subst}\left (\int x^2 \, dx,x,\csc (c+d x)\right )}{a d}\\ &=\frac{\cot ^3(c+d x)}{3 a d}-\frac{\csc ^3(c+d x)}{3 a d}\\ \end{align*}
Mathematica [A] time = 0.209556, size = 66, normalized size = 1.78 \[ \frac{\csc (c) (2 \sin (c+d x)+\sin (2 (c+d x))+2 \sin (c+2 d x)-6 \sin (c)+4 \sin (d x)) \csc (2 (c+d x))}{6 a d (\sec (c+d x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.049, size = 36, normalized size = 1. \begin{align*}{\frac{1}{4\,da} \left ( -{\frac{1}{3} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{3}}- \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{-1} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.996431, size = 66, normalized size = 1.78 \begin{align*} -\frac{\frac{3 \,{\left (\cos \left (d x + c\right ) + 1\right )}}{a \sin \left (d x + c\right )} + \frac{\sin \left (d x + c\right )^{3}}{a{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}}{12 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.5547, size = 111, normalized size = 3. \begin{align*} -\frac{\cos \left (d x + c\right )^{2} + \cos \left (d x + c\right ) + 1}{3 \,{\left (a d \cos \left (d x + c\right ) + a d\right )} \sin \left (d x + c\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{\csc ^{2}{\left (c + d x \right )}}{\sec{\left (c + d x \right )} + 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.30797, size = 50, normalized size = 1.35 \begin{align*} -\frac{\frac{\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3}}{a} + \frac{3}{a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )}}{12 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]